From: Colin Walters Date: Wed, 26 Aug 2009 22:43:44 +0000 (-0400) Subject: Add 'r' as an alias to 'restart' in run dialog X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11016 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ecc1f964c917163e67211d3b419c577737f2e1ce;p=gnome-shell.git Add 'r' as an alias to 'restart' in run dialog For even faster turnaround inspection of changes. Also add a comment about the idle_add in the 'lg' command. --- diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 53a56e95a..fd114adf9 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -36,9 +36,16 @@ RunDialog.prototype = { this._internalCommands = { 'lg': Lang.bind(this, function() { + // Run in an idle to avoid recursive key grab problems Mainloop.idle_add(function() { Main.createLookingGlass().open(); }); }), - + + 'r': Lang.bind(this, function() { + let global = Shell.Global.get(); + global.reexec_self(); + }), + + // Developer brain backwards compatibility 'restart': Lang.bind(this, function() { let global = Shell.Global.get(); global.reexec_self();